<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>项目管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(function() {
			//当页面加载完成的时候，自动调用该方法
            window.onload=function(){
                //获值
                var typeList = $("#typeList").text();
                var versionList = $("#versionList").text();
                var serverexplainList = $("#serverexplainList").text();
                //拆分为字符串数组
                var typeArr =typeList.split(",");
                var versionArr =versionList.split("(@#$%^&*)");
                var serverexplainArr =serverexplainList.split("(@#$%^&*)");
                var str="";
               for(var i=0;i<typeArr.length;i++){
            	   
            	   typeArr[i]=typeArr[i].replace('[',''); 
            	   typeArr[i]=typeArr[i].replace(']',''); 
            	   if(serverexplainArr[i]==null){
            		   serverexplainArr[i]=" ";
            	   }
            	   if(versionArr[i]==null){
            		   versionArr[i]=" ";
            	   }
					str+="<br><table style='width:60%;margin:auto;' class='table table-striped table-bordered table-condensed'><tr><td class='tdl'><h5>服务器类型：</h5></td><td><strong>"+typeArr[i]+"</strong></td></tr><tr><td class='tdl'><h5>版本：</h5></td><td><strong>"+versionArr[i]+"</strong></td></tr><tr><td class='tdl'><h5>服务器信息说明：</h5></td><td><strong>"+serverexplainArr[i]+"</strong></td></tr></table>";
               }
               $("#text").html(str);
            };
		});
	</script>
	<style type="text/css">
	.tdl{width:20%;}
	</style>
</head>
<body>
	<ul class="nav nav-tabs">
	</ul><br/>
		<sys:message content="${message}"/>
		<h4 class="text-primary text-center">项目审核信息表</h4><br>
		<p id="typeList" style="display:none;">${serverinformation.typeList}</p>
		<p id="versionList" style="display:none;">${serverinformation.version}</p>
		<p id="serverexplainList" style="display:none;">${serverinformation.serverexplain}</p>
			<table id="contentTable" style="width:60%;margin: auto;"class="table table-striped table-bordered table-condensed">
			<tr>
				<td class='tdl'><h5>项目名称：</h5></td><td><strong>${serverinformation.projectname}</strong></td>
			</tr>
			<tr>
				<td class='tdl'><h5>状态：</h5></td><td><strong>${fns:getDictLabel(serverinformation.status, 'project_status', '')}</strong></td>
			</tr>
			
			<tr>
			
				<td class='tdl'><h5>审核信息：</h5></th><td><strong>${serverinformation.approval}</strong></td>
			</tr>
		</table>
		<span id="text"></span>	
		<div class="form-actions" style="text-align: center;">
			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="window.location.href='${ctx}/projectdemo/projectapply'"/>
		</div>
</body>
</html>